\documentclass[titlepage,12pt]{article}

\usepackage[margin = 1in]{geometry}



%% === basic packages ===
\usepackage{latexsym}
\usepackage{amssymb,amsmath}
\usepackage{graphicx}
%\usepackage[compact]{titlesec}
\usepackage{comment}
\usepackage{rotating}
\usepackage{url}
\usepackage{setspace}

\usepackage{float}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{pdflscape}
\usepackage{booktabs}
\usepackage{longtable}

\usepackage{threeparttable}



% === dcolumn package ===
\usepackage{dcolumn}
\newcolumntype{.}{D{.}{.}{-1}}
\newcolumntype{,}{D{,}{,}{-1}}
\newcolumntype{d}[1]{D{.}{.}{#1}}

\graphicspath{ {./Figures/} }
\frenchspacing

\usepackage{titlesec}

\titleformat{\section}[block]{\scshape\centering}
    {\thesection}
    {1ex}
    {\MakeLowercase}
%\titleformat{\subsection}[block]{\normalfont\medium\centering}
\titleformat{\subsection}[block]{\centering}
    {\thesubsection}
    {1ex}
    {\it}

\begin{document}

\listoftables
\listoffigures

\input{Tables/sum_stats}

\input{Tables/table_economic_effects_cl}

\input{Tables/table_votes_compact_cl}

\input{Tables/table_news_trade_short_cl}

\input{Tables/table_manif_lib_cl}

\input{Tables/table_unemp_terms_cl}

\begin{figure}[h]
\begin{center}
\includegraphics[width = 0.66666\textwidth, angle=0]{figure_1}
\caption{UK imports from Germany, 1880--1910}\label{imports-ts}
\end{center}
\end{figure}

\begin{figure}[h]
\begin{center}
\includegraphics[width = \textwidth, angle=0]{figure_2}
\caption{UK imports from Germany in decade and election years, by category}\label{imports-category-ts}
\end{center}
\end{figure}

\begin{figure}[h]
\begin{center}
\includegraphics[width = 0.66666\textwidth, angle=0]{figure_3}
\caption{Social welfare spending, 1880--1914, from Boyer (2019)}\label{socialspending}
\end{center}
\end{figure}

\begin{figure}[h]
\begin{center}
\includegraphics[width = \textwidth, angle=0]{figure_4}
\caption{Geographic distribution of change in German imports per worker, 1885--1910}
\label{ipw_map}
\end{center}
\end{figure}

\begin{figure}[h]
\begin{center}
\includegraphics[width = \textwidth, angle=0]{figure_5}
\caption{Conservative vote share by 1910 $\Delta\textrm{IPW}$, with matched panel}
\label{vote_plots}
\end{center}
\end{figure}

\begin{figure}[h]
\begin{center}
\includegraphics[width = 0.666666\textwidth, angle=0]{figure_6}
\caption{References to unemployment, vagrancy, and pauperism in the \emph{Times}}
\label{plot_times}
\end{center}
\end{figure}

\clearpage
\appendix
\renewcommand{\thefigure}{A-\arabic{figure}}
\renewcommand{\thetable}{A-\arabic{table}}
\setcounter{table}{0}
\setcounter{figure}{0}

\input{Tables/category_table}

\input{Tables/table_hiscam_cl}


\input{Tables/table_econ_rotemberg}

\input{Tables/table_econ_robust_cl}

\input{Tables/table_votes_cl}
\input{Tables/table_votes_robust_l_cl}
\input{Tables/table_votes_fd_cl}

\input{Tables/table_voting_rotemberg}

\input{Tables/table_elec_robust_cl}


\input{Tables/table_votes_drop_cl}

\input{Tables/table_union_cl}


\input{Tables/table_votes_by_period_cl}


\input{Tables/table_votes_rev1_cl}



\input{Tables/table_votes_trend_cl}

\input{Tables/table_ch_robust}

\input{Tables/table_incumbency_cl}

\input{Tables/table_news_beveridge_cl}

\input{Tables/table_news_german_cl}
\input{Tables/table_manif_german_cl}
\input{Tables/table_manif_aliens_cl}
\input{Tables/table_news_aliens_cl}

\input{Tables/table_economic_effects_ex}

\input{Tables/table_votes_compact_ex}


\input{Tables/table_news_trade_short_ex}

\input{Tables/table_manif_lib_ex}
\input{Tables/table_unemp_terms_ex}

\input{Tables/table_hiscam_ex}
\input{Tables/table_econ_robust_ex}
\input{Tables/table_votes_ex}
\input{Tables/table_votes_robust_l_ex}
\input{Tables/table_votes_fd_ex}
\input{Tables/table_elec_robust_ex}
\input{Tables/table_votes_drop_ex}
\input{Tables/table_union_ex}
\input{Tables/table_votes_by_period_ex}
\input{Tables/table_votes_rev1_ex}
\input{Tables/table_votes_trend_ex}
\input{Tables/table_incumbency_ex}

\input{Tables/table_news_beveridge_ex}
\input{Tables/table_news_german_ex}
\input{Tables/table_manif_german_ex}

\input{Tables/table_manif_aliens_ex}
\input{Tables/table_news_aliens_ex}

\input{Tables/table_match_plot}


\begin{figure}[h!]
\begin{center}
\includegraphics[width = 0.75\textwidth, angle=0]{figure_a1}
\caption{Comparing value of imports by country according to pre- and post-1908 classification systems}
\end{center}
\end{figure}

\begin{figure}[h]
\begin{center}
\includegraphics[width = \textwidth, angle=0]{figure_a2}
\caption{German exports and UK imports 1880--1910, data from TRADHIST (note the change in UK import attribution in 1908)}
\label{imports_germany_uk_spaghetti}
\end{center}
\end{figure}

\begin{comment}
\input{Tables/sum_stats}

\input{Tables/table_economic_effects_cl}
\input{Tables/table_economic_effects_ex}
\input{Tables/table_hiscam_cl}
\input{Tables/table_hiscam_ex}
\input{Tables/table_econ_robust_cl}
\input{Tables/table_econ_robust_ex}
\input{Tables/table_econ_rotemberg}

\input{Tables/table_votes_compact_cl}
\input{Tables/table_votes_compact_ex}
\input{Tables/table_votes_cl}
\input{Tables/table_votes_ex}
\input{Tables/table_votes_robust_l_cl}
\input{Tables/table_votes_robust_l_ex}
\input{Tables/table_votes_fd_cl}
\input{Tables/table_votes_fd_ex}
\input{Tables/table_voting_rotemberg}
\input{Tables/table_elec_robust_cl}
\input{Tables/table_elec_robust_ex}
\input{Tables/table_votes_drop_cl}
\input{Tables/table_votes_drop_ex}
\input{Tables/table_union_cl}
\input{Tables/table_union_ex}
\input{Tables/table_votes_by_period_cl}
\input{Tables/table_votes_by_period_ex}
\input{Tables/table_votes_rev1_cl}
\input{Tables/table_votes_rev1_ex}
\input{Tables/table_votes_trend_cl}
\input{Tables/table_votes_trend_ex}
\input{Tables/table_ch_robust}
\input{Tables/table_incumbency_cl}
\input{Tables/table_incumbency_ex}

\input{Tables/table_news_trade_short_cl}
\input{Tables/table_news_trade_short_ex}
\input{Tables/table_unemp_terms_cl}
\input{Tables/table_unemp_terms_ex}
\input{Tables/table_news_beveridge_cl}
\input{Tables/table_news_beveridge_ex}
\input{Tables/table_news_german_cl}
\input{Tables/table_news_german_ex}
\input{Tables/table_news_aliens_cl}
\input{Tables/table_news_aliens_ex}

\input{Tables/table_manif_lib_cl}
\input{Tables/table_manif_lib_ex}
\input{Tables/table_manif_german_cl}
\input{Tables/table_manif_german_ex}
\input{Tables/table_manif_aliens_cl}
\input{Tables/table_manif_aliens_ex}

\pagebreak
\input{Tables/category_table}
\end{comment}

\end{document}
